﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using BookManage.Model;
using BookManage.DAL;

namespace BookManage.BLL
{
    public class ReaderTypeAdmin
    {
        public static ReaderType GetReaderType(int rdType)
        {
            return (ReaderTypeDAL.GetObjectByID(rdType));
        }
        public  DataTable GetReaderType(int rdType,string rdTypeName)
        {
            return (ReaderTypeDAL.GetReaderType(rdType, rdTypeName));
        }
        public DataTable GetAllReaderType()
        {
            return (ReaderTypeDAL.GetAll());
        }
        public int AddRT(ReaderType rt)
        {
            return (ReaderTypeDAL.Add(rt));
        }
        public int UpdateRT(ReaderType rt)
        {
            return (ReaderTypeDAL.Update(rt));
        }
        public int Delete(ReaderType rt)
        {
            return (ReaderTypeDAL.Delete(rt));
        }
    }
}
